package hibari.server.service;

import hibari.PMF;
import hibari.client.model.Music;
import hibari.client.service.IMusicService;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;

public class MusicService extends RemoteServiceServlet implements IMusicService {
	private static final long serialVersionUID = 8116326844517724501L;

	@Override
	public Music getMusic(long musicId) {

		Music music = null;
		try {
			music = PMF.get().getPersistenceManager().getObjectById(Music.class, musicId);
		} catch (Exception e) {
			music = null;
		}
		return music;
	}
}
